package com.fanxing.generics;

import java.lang.reflect.Method;

public class Test09 {
    public static void main(String[] args) {
        for (Method declaredMethod : InterfaceAImpl.class.getDeclaredMethods()) {
            System.out.println(declaredMethod.getName() + ":" + declaredMethod.getReturnType().getSimpleName());
        }
    }
}

interface InterfaceA<T>{
    T fun1();
}

class InterfaceAImpl implements InterfaceA<String>{

    @Override
    public String fun1() {
        return null;
    }
}